package com.jt9003.service.impl;

import com.jt9003.dao.DrugsInputMapper;
import com.jt9003.pojo.DrugsExport;
import com.jt9003.pojo.StockInquiry;
import com.jt9003.service.DrugsIputService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service
public class DrugsInputServiceImpl implements DrugsIputService {
    @Resource
    private DrugsInputMapper drugsInputMapper;

    @Override
    public Integer updateStatus(String documentNo) {
        return drugsInputMapper.updateStatus(documentNo);
    }

    @Override
    public DrugsExport query(String documentNo) {
        return drugsInputMapper.query(documentNo);
    }

    @Override
    public StockInquiry isDrName(Map map) {
        return drugsInputMapper.isDrName(map);
    }

    @Override
    public Integer add(Map map) {
        return drugsInputMapper.add(map);
    }

    @Override
    public Integer queryInventoryNumber(Map map) {
        return drugsInputMapper.queryInventoryNumber(map);
    }

    @Override
    public Integer updateInventoryNumber(Map map) {
        return drugsInputMapper.updateInventoryNumber(map);
    }
}
